< previous page page_68 next page >

Page 68
   info = info & "Standard time = UTC + " & tz.StandardBias / 60 & _
   " hours" & vbCrLf
   info = info & "Daylight time = UTC + " & tz.DaylightBias / 60 & _
   " hours" & vbCrLf
   info = info & "Standard time name: ???" & vbCrLf
   info = info & "Daylight time name: ???" & vbCrLf
   lblTimeZone.Caption = info
End Sub
Results
Figure P15-1 shows the results of this program on my system (located on the West Coast of the United States). The result for the local time (based on the Bias parameter) is correctan 8-hour difference. But the StandardBias and DaylightBias results don't make sense.
Your job:
1. Fix the program so that the StandardBias and DaylightBias information is read correctly.
2. Figure out a way to read the StandardName and DaylightName fields.
0068-01.gif
Figure P15-1:
Typical results of the tz.vbp program

 
< previous page page_68 next page >